package com.group3.merchant.validator.impl;

import java.util.ArrayList;
import java.util.List;

import com.group3.merchant.validator.IValidator;

public class UsernameValidator implements IValidator {

	private final String NOT_NULL_MSG = "NAME CANNOT BE EMPTY!";

	@Override
	public List<String> validate(String s) {
		List<String> errMsg = new ArrayList<String>();
		if ("".equals(s)) {
			errMsg.add(NOT_NULL_MSG);
		}

		return errMsg;
	}

}
